package com.briup.common.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * jwt配置信息
 * @author wood
 */
@ConfigurationProperties(prefix = "briup.config.jwt")
@Data
@Component
public class JwtIntercepterConfigProperties {

    private boolean enabled;

    // JWT拦截器和swagger统一认证路径，它们俩个配置的路径要一致
    private String[] authPath = {"/auth/**"};

    // token远程认证检查地址
    private String remoteAuthCheckUrl = "http://127.0.0.1:9999/check/token";

}
